#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef double db;

#define in read()
#define pii pair<int,int>
#define fi first
#define se second
#define FILE(x) freopen(x".in","r",stdin);\
	freopen(x".out","w",stdout);
#define pb push_back

ll read(){
	ll x = 0,sgn = 1;char ch = getchar();
	for(;!isdigit(ch);ch = getchar()) if(ch == '-') sgn = -1;
	for(;isdigit(ch);ch = getchar()) x = (x<<1)+(x<<3)+(ch^48);
	return x*sgn;
}

const int N = 1010;

ll x[N],y[N];
vector<ll> d;
int c[2],n;

ll t(ll x){return x < 0 ? -x : x;}

int main (){
#ifndef ONLINE_JUDGE
	freopen("1.in","r",stdin);
#endif
	n = in;
	for(int i = 1;i <= n;i++) x[i] = in,y[i] = in;
	for(int i = 1;i <= n;i++) c[x[i]+y[i]&1]++;
	if(c[0] && c[1]) return puts("-1"),0;
	for(int i = 31;i >= 0;i--) d.pb(1ll<<i);
	if(c[0]) d.pb(1);printf("%lld\n",d.size());
	for(ll s : d) printf("%lld ",s);puts("");
	for(int i = 1;i <= n;i++){
		for(ll s : d){
			if(t(x[i]) > t(y[i])){
				putchar(x[i] < 0 ? 'L' : 'R');
				x[i] -= x[i] < 0 ? -s : s;
			}else{
				putchar(y[i] < 0 ? 'D' : 'U');
				y[i] -= y[i] < 0 ? -s : s;
			}
		}puts("");
	}
	return 0;
}

